import 'package:flutter/material.dart';
import 'package:mall/entity/home_entity.dart';

class BookPage extends StatefulWidget {
  List<FloorGoodsList> floorGoodsList;

  BookPage(this.floorGoodsList);

  @override
  State<StatefulWidget> createState() {
    print(this.floorGoodsList.length);
    // TODO: implement createState
    return new _BookPage();
  }
}

class _BookPage extends State<BookPage> {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return DefaultTabController(
        length: 3,
        child: Scaffold(
          appBar: AppBar(
            backgroundColor: Colors.white,
            bottom: TabBar(
              tabs: [
                Tab(icon: Icon(Icons.directions_car)),
                Tab(icon: Icon(Icons.directions_transit)),
                Tab(icon: Icon(Icons.directions_bike)),
              ],
            ),
          ),
          body: TabBarView(
            children: [
              Icon(Icons.directions_car),
              Icon(Icons.directions_transit),
              Icon(Icons.directions_bike),
            ],
          ),
        ));
  }
}
